package com.obas.model.type;

import com.ease.common.enums.EnumUtil;
import com.ease.common.enums.TextualEnum;

/**
 *
 * @author nathanleewei
 *
 */
public enum BaseValueAttributeType implements TextualEnum, AttributeColumnType {

	VALUE1("值[1]", "VALUE1", "NUMBER", 0), //
	VALUE2("值[2]", "VALUE2", "NUMBER", 0), //
	VALUE3("值[3]", "VALUE3", "NUMBER", 0), //
	VALUE4("值[4]", "VALUE4", "NUMBER", 0), //
	VALUE5("值[5]", "VALUE5", "NUMBER", 0), //
	VALUE6("值[6]", "VALUE6", "NUMBER", 0), //
	VALUE7("值[7]", "VALUE7", "NUMBER", 0), //
	VALUE8("值[8]", "VALUE8", "NUMBER", 0), //
	VALUE9("值[9]", "VALUE9", "NUMBER", 0), //
	VALUE10("值[10]", "VALUE10", "NUMBER", 0), //
	VALUE11("值[11]", "VALUE11", "NUMBER", 0), //
	VALUE12("值[12]", "VALUE12", "NUMBER", 0); //

	private String text;
	private String columnName;
	private String dataType;
	private int length;

	private BaseValueAttributeType(String text, String columnName, String dataType, int length) {
		this.text = text;
		this.columnName = columnName;
		this.dataType = dataType;
		this.length = length;
	}

	public static BaseValueAttributeType get(String name) {
		return EnumUtil.get(BaseValueAttributeType.class, name);
	}

	public String getText() {
		return text;
	}

	public String getName() {
		return name();
	}

	/**
	 * @return the dataType
	 */
	public String getDataType() {
		return dataType;
	}

	/**
	 * @return the length
	 */
	public int getLength() {
		return length;
	}

	/**
	 * @return the columnName
	 */
	public String getColumnName() {
		return columnName;
	}

}
